Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-crypto/material-management-node

Package Overview
Dependencies
Maintainers
8
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-crypto/material-management-node

The AWS Encryption SDK for JavaScript is a client-side encryption library designed to make it easy for everyone to encrypt and decrypt data using industry standards and best practices. It uses a data format compatible with the AWS Encryption SDKs in other

  • 3.2.2
  • npm
  • Socket score

Version published
Maintainers
8
Created

What is @aws-crypto/material-management-node?

@aws-crypto/material-management-node is a package provided by AWS that offers cryptographic materials management for Node.js applications. It is part of the AWS Encryption SDK and is used to handle encryption and decryption operations, manage cryptographic keys, and ensure secure data handling.

What are @aws-crypto/material-management-node's main functionalities?

Keyring Management

This feature allows you to create and manage keyrings, which are collections of cryptographic keys used for encryption and decryption. The code sample demonstrates how to create a KMS keyring using AWS KMS keys.

const { KmsKeyringNode } = require('@aws-crypto/client-node');

const keyring = new KmsKeyringNode({
  generatorKeyId: 'arn:aws:kms:us-west-2:123456789012:key/abcd1234-a123-456a-a12b-a123b4cd56ef',
  keyIds: ['arn:aws:kms:us-west-2:123456789012:key/abcd1234-a123-456a-a12b-a123b4cd56ef']
});

Encryption

This feature enables you to encrypt data using the specified keyring. The code sample shows how to encrypt a plaintext string using the keyring created earlier.

const { encrypt } = require('@aws-crypto/client-node');

const plaintext = 'Hello, World!';
const { result } = await encrypt(keyring, plaintext);
console.log(result);

Decryption

This feature allows you to decrypt data that was previously encrypted using a keyring. The code sample demonstrates how to decrypt a ciphertext string using the keyring.

const { decrypt } = require('@aws-crypto/client-node');

const ciphertext = '...'; // Encrypted data
const { plaintext, messageHeader } = await decrypt(keyring, ciphertext);
console.log(plaintext.toString());

Other packages similar to @aws-crypto/material-management-node

FAQs

Package last updated on 05 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc